filterIsInstance

inline fun <T> filterIsInstance(): Either<T, R>?

Returns the same Left casted to type T if it is T. Otherwise returns null.

Return

The same Left casted to type T if it is T. Otherwise returns null.

Parameters

T

Required type of the optional value.